home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / Mnu / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-03-29  |  1.3 KB  |  51 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8. #ifndef DEFINES_K
  9. #include "Defines.k"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17.  
  18. //=======================================================================
  19. class FW_CPart;
  20. class FW_CMenuBar;
  21. class FW_CMenuEvent;
  22. class FW_CPresentation;
  23.  
  24. //=======================================================================
  25. class CMnuPart : public FW_CPart {
  26. public:
  27.     FW_DECLARE_AUTO(CMnuPart)
  28.                         CMnuPart(ODPart* odPart);
  29.     virtual             ~CMnuPart();
  30. // overrides
  31. protected:
  32.     virtual void         Initialize(Environment* ev);
  33.     virtual FW_CContent* NewPartContent(Environment* ev);
  34.     virtual FW_CFrame*    NewFrame(Environment* ev,
  35.                                  ODFrame* odFrame,
  36.                                  FW_CPresentation* presentation,
  37.                                  FW_Boolean fromStorage);
  38.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  39.                                       FW_CMenuBar* menuBar, 
  40.                                       FW_Boolean hasMenuFocus,
  41.                                       FW_Boolean isRoot);
  42.     virtual FW_Boolean    DoMenu(Environment* ev,
  43.                                const FW_CMenuEvent& theMenuEvent);
  44. // new members
  45. private:
  46.     FW_CPresentation*    fPresentation;
  47. };
  48.  
  49. //=======================================================================
  50. #endif
  51.